using System.Runtime.Serialization;

namespace SharedObjects
{
	//this is an in-memory entity only. We convert sellable objects to MarketItems for display and price calculation.
	[DataContract]
	public class MarketItem
	{
		[DataMember] public ulong ItemId { get; set; }
		[DataMember] public string Name { get; set; }
		[DataMember] public long Price { get; set; }
		[DataMember] public MarketItemType ItemType { get; set; }
		[DataMember] public double Modifier { get; set; }
		[DataMember] public double Size { get; set; }
		[DataMember] public string Description { get; set; }
	}

	public enum MarketItemType
	{
		Software,
		Cpu,
		Memory,
		Nic,
		Blueprint
	}
}